<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="__CONTENT__/Admin/css/admin_header.css" rel="stylesheet"
	type="text/css">
<title>{:C('GLOBAL-TITLE')}</title>
<script type="text/javascript" src="__CONTENT__/js/jquery.js"></script>
<script type="text/javascript">
$(function(){
	/**菜单栏点击,显示和隐藏*/
	$(".actuator").toggle(function(){
		$(this).parent().addClass("treemenu-close").find(".submenu").hide();
	},function(){
		$(".treemenu").removeClass("treemenu-close");
		$(this).parent().removeClass("close").addClass("open").find(".submenu").show();
	});
	/**点击子菜单栏,加上当前焦点*/
	$("ul.submenu li a").click(function(){
		$("ul.submenu li a").removeClass("submenuB");
		$(this).addClass("submenuB");
	});
	/**点击顶部大菜单,出现焦点,以及对应子菜单显示*/
	$(".main_nav a").click(function(){
		$(".main_nav a").removeClass("on");
		$(this).addClass("on");
		$(".treemenu").hide();
		$(".treemenu[id='"+$(this).attr("id")+"']").show();
	});
});
</script>
<body scroll="no" style="margin: 0; padding: 0;"
	screen_capture_injected="true">
	<table width="100%" height="100%" border="0" cellpadding="0"
		cellspacing="0">
		<tbody>
			<tr>
				<td colspan="3">
					<div class="header">
						<!-- 头部 begin -->
						<div class="logo">
							<a href="#"><strong style="font-size: 18px;">管理中心</strong></a>
						</div>
						<div class="nav_sub">
							您好,{$_SESSION['admin']['username']}&nbsp; {$_SESSION['admin']['role_name']} 
							<span id="rescue_msg" style="display:none;">
							|
							<span><img src="__CONTENT__/Admin/images/mail.png" width="20" height="15" /></span>
							<span><a href="{:U('RescueConfirm/rescueList')}" target="main">您有<font color="red" id="rescue_count"></font>个作业单未处理</span></a>
							</span>
							 | <a
								href="{:U('Public/logout')}">退出</a><br>
							<div id="TopTime"></div>
						</div>
						<div class="main_nav">
							{foreach $_SESSION['menuList'] as $k=>$v}
					    	<a {if $k==0}class="on"{/if} hidefocus="true" style="outline:none;" id="{$k}">{$v['name']}</a>
					    	{/foreach}
						</div>
					</div>
					<div class="header_line">
						<span>&nbsp;</span>
					</div>
				</td>
			</tr>
			<tr>
				<td width="200px" height="100%" valign="top" id="FrameTitle"
					background="__CONTENT__/Admin/images/left_bg.gif">
					<div class="LeftMenu">
						<!-- 第一级菜单，即大频道 -->
						<ul class="MenuList">
							<!-- 第二级菜单 -->
							{foreach $_SESSION['menuList'] as $k=>$v}
							<li id="{$k}" class="treemenu"
								style="{if $k!=0}display:none;{/if}">
								<a class="actuator" href="#" hidefocus="true">{$v['name']}</a>
								<ul class="submenu">
									<!-- 第三级菜单 -->
									{foreach $v['children'] as $item}
									<li><a href="{:U($item['url'])}" target="main">{$item['name']}</a></li>
									{/foreach}
								</ul>
							</li> 
							{/foreach}
						</ul>
					</div>
				</td>
				<td><iframe name="main" src="{:U('home')}" scrolling="yes"
						width="100%" height="100%" frameborder="0" noresize="">
					</iframe></td>
			</tr>
		</tbody>
	</table>
	</script>
</body>
</html>